<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
	BillMonthIoPageData obj = (BillMonthIoPageData)context.getValue("BillMonthIoPageData");
    if(obj == null) obj = new BillMonthIoPageData();
    
    String monthDate = new DateUtil().getFullString();       

    String year = "";
    String month = "";
    if(monthDate.length() >=  7){
        year = monthDate.substring(0, 4);
        month = monthDate.substring(5, 7);
    }
%>

<!--********************* Part3:JavaScript Code ***************-->
<%@page import="framework.core.DateUtil"%>
<script language="javascript">

var g_check_items = new Array();
var g_i = 0 ;

g_check_items[g_i++] = new CheckItem("仓库编号","WarehouseCode",true,true,200,false,0);

//g_check_items[g_i++] = new CheckItem("仓库名称","WarehouseName",true,true,100,false,0);

//g_check_items[g_i++] = new CheckItem("费用类别","MoneyType",true,true,100,false,0);

//g_check_items[g_i++] = new CheckItem("出入库金额标志","MoneyIo",true,true,1,false,0);

//g_check_items[g_i++] = new CheckItem("总金额","Money",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("材料总费用","Money_0",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("集中采购","Money_1",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("网上采购","Money_2",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("自行采购","Money_3",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("申沃配件","Money_4",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("发动机外包","Money_5",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("电器空调外包","Money_6",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("水箱外包维修","Money_7",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("自修件费用","Money_8",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("公务车维修","Money_9",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);
g_check_items[g_i++] = new CheckItem("其他","Money_10",true,false,0,true,CHECK_ITEM_TYPE_DOUBLE);

//g_check_items[g_i++] = new CheckItem("费用发生日期","MoneyDate",true,true,20,false,0);

//g_check_items[g_i++] = new CheckItem("创建人序号","CreateUserId",false,true,32,false,0);

//g_check_items[g_i++] = new CheckItem("创建人","CreateUser",false,true,100,false,0);

//g_check_items[g_i++] = new CheckItem("创建时间","CreateTime",false,true,20,false,0);


function doSaveAndNew()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveAndNewBillMonthIo");
	frm.submit();
}
function doSave()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveBillMonthIo");
	frm.submit();
}
function doCancel()
{
	SetAction("backListBillMonthIo");
	frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSaveAndNew);
</script>

<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->

<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code">

<input type=hidden name="Id" value="<%=obj.getId()%>">


<br>

<%=UIManager.addEditHeadTitle("其他费用管理维护")%>


<!--********************* Part5:Edit Area  ***************-->
<%=uiEditStart%>>
<%
	int key_tab = 1 ;
%>

    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>费用发生日期：</td>
        <%=uiEditTD%>>
            <%=SelectManager.viewYearSelect(con,"Year",year,false,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%>  <%=SelectManager.viewMonthSelect(con,"Month",month,false,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%><font color=red>*</font>
        </td>
    </tr>


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>所属仓库：</td>
		<%=uiEditTD%>>
			<%=SelectManager.viewWarehouseSelect(con,loginInfo.getLoginWarehouseCode(),"WarehouseCode",obj.getWarehouseCode(),false,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%><font color=red>*</font>
		</td>
	</tr>
	

    <%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>材料总费用：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Money_0" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>集中采购：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_1" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>网上采购：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_2" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>自行采购：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_3" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>申沃配件：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_4" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>发动机外包：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_5" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>电器空调外包：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_6" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>水箱外包维修：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_7" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>自修件费用：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_8" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>公务车维修：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_9" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>
    
    <%=uiEditTR%>>
        <%=uiEditHeadTD%> width=250>其他：</td>
        <%=uiEditTD%>>
            <input type=text class="texts"  name="Money_10" size=20  value="<%=obj.viewMoney(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
        </td>
    </tr>


<%=uiEditEnd%>

<!--********************* Part6:Action Area  ***************-->
<%=uiCommandStart%>>
	<%=uiCommandTR%>>
   		<%=uiCommandTD%>>                     
			<!--  <input type=button class="buttons" value=" 保存&添加 " onclick="doSaveAndNew();return false;"> -->
			<input type=button class="buttons" value="    保存   " onclick="doSave();return false;">
			<input type=button class="buttons" value="    返回   " onclick="doCancel();return false;">
		</td>
	</tr>
<%=uiCommandEnd%>
</form>

<%@ include file="/framework/foot.jsp"%>

<!--
	Author    :Arrow
	FileName  :/system/base/BillMonthIoEdit.jsp
-->
